import { defineSuccessMock } from '../index'

export default defineSuccessMock([
  {
    url: '/menu/page',
    method: 'GET',
    body: []
  },
  {
    url: '/menu/list',
    method: 'GET',
    body: {}
  },
  {
    url: '/menu/:id',
    method: 'GET',
    body(request) {
      const id = request.params.id as string
      return {}
    }
  },
  {
    url: '/menu/:id',
    method: 'PUT',
    body(request) {
      const id = request.params.id as string
      return {}
    }
  },
  {
    url: '/menu/:id',
    method: 'DELETE',
    body(request) {
      const id = request.params.id as string
      return {}
    }
  }
])
